<?php
/**
 * User: 1971229701@qq.com
 * Date: 2020/9/8/008
 * Time: 11:02
 */

namespace app\common\helper;


class BaseCallResult
{
    private $data;
    private $msg;
    private $code;

    public function __construct($data = '', $msg = '', $code = 1)
    {
        $this->setData($data);
        $this->setMsg($msg);
        $this->setCode($code);
    }

    /**
     * @param mixed $data
     */
    public function setData($data)
    {
        $this->data = $data;
    }

    /**
     * @return mixed
     */
    public function getData()
    {
        return $this->data;
    }

    /**
     * @param mixed $code
     */
    public function setCode($code)
    {
        $this->code = $code;
    }

    /**
     * @return mixed
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * @param mixed $msg
     */
    public function setMsg($msg)
    {
        $this->msg = $msg;
    }

    /**
     * @return mixed
     */
    public function getMsg()
    {
        return $this->msg;
    }
}